{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "d89023eb",
   "metadata": {},
   "source": [
    "![在这里插入图片描述](https://img-blog.csdnimg.cn/b5474c9ec29c44dd8e20fb1d6eeb6e59.jpeg#pic_center)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "c3ad0fb2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "this minute seems a little odd.\n",
      "this minute seems a little odd.\n",
      "this minute seems a little odd.\n",
      "this minute seems a little odd.\n",
      "this minute seems a little odd.\n"
     ]
    }
   ],
   "source": [
    "from datetime import  datetime\n",
    "import time\n",
    "import random\n",
    "odds = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59]\n",
    "for i in range(5):\n",
    "    right_this_minute = datetime.today().minute\n",
    "    if right_this_minute in odds:\n",
    "         print(\"this minute seems a little odd.\")\n",
    "    else:\n",
    "         print(\"Not an odd minute.\")\n",
    "wait_time = random.randint(1,60)\n",
    "time.sleep(wait_time)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9a4001f5",
   "metadata": {},
   "source": [
    "[](https://img-blog.csdnimg.cn/b6ff1b607f4e472f865f770a434b3321.jpeg#pic_center)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
